# coding=utf-8
import wx

class AboutFrame(wx.Frame):
    
    def __init__(self):
        wx.Frame.__init__(self,None,-1,u"wxPython 记事本 Version1.0",style=wx.DEFAULT_FRAME_STYLE ^ (wx.RESIZE_BORDER | wx.MAXIMIZE_BOX),size=(400,200))
        self.Center()
        self.panel=wx.Panel(self)
        self.image=wx.Image("logo.jpg", wx.BITMAP_TYPE_JPEG)
        self.bitmap=self.image.ConvertToBitmap()
        self.logo=wx.StaticBitmap(self.panel, bitmap=self.bitmap,pos=(30,40))
        self.abouttext=wx.StaticText(self.panel,-1,label=u"wxPython 记事本 version 1.0\r\n\r\nzyycome keep all the reserve 2009-07-16",pos=(120,50))
        self.closebutton=wx.Button(self.panel,label=u"关闭",pos=(300,120))
        self.Bind(wx.EVT_BUTTON,self.OnExit,self.closebutton)
        self.Bind(wx.EVT_CLOSE,self.OnDestroy)
    
    def OnExit(self,event):
        self.Close()
    
    def OnDestroy(self,event):
        self.Destroy()
    